<?php global $_webnukes;?>
<?php $h_settings = $_webnukes->get_settings('header_settings'); /** get contact details from options */ ?>

<a href="javascript:void(0);" id="contact"><?php _e('Contact', THEME_NAME); ?></a> 							

<!-- Contact Dialog -->
<div id="contactbox" class="gray_gradient">
    <img src="<?php echo THEME_URL ?>/images/sign_in_arrow.png" alt="" class="boxArrow" />
    <div class="box_heading">
        <?php _e('Contact us', THEME_NAME);?>
        <a href="javascript:void(0);" class="close"><img id="fadeout" src="<?php echo THEME_URL ?>/images/close.png" alt="" width="16" height="16" /></a>
    </div>
    <div id="contact_response"></div>
    
    <?php if( $_webnukes->kvalue($h_settings, 'office_location') ) : /** check if office location added in options*/ ?>
            <h6><?php echo $_webnukes->kvalue($h_settings, 'office_location');?></h6>
    <?php endif;?>
    
    <?php if( $_webnukes->kvalue($h_settings, 'office_timing') ) :// check if office timing added in options panel?>
        <span><?php echo $_webnukes->kvalue($h_settings, 'office_timing');?></span>
    <?php endif;?>

    <?php if( $_webnukes->kvalue($h_settings, 'office_address') ) : // check if office address added in options panel?>
        <div class="coll_left left"><?php echo $_webnukes->kvalue($h_settings, 'office_address');?></div>
    <?php endif;?>
    
    <div class="coll_right right">
        <?php if( $_webnukes->kvalue($h_settings, 'office_phone') ): /** check if office address added in options panel*/ ?>
            <?php _e('Tel', THEME_NAME); ?>: <?php echo $_webnukes->kvalue($h_settings, 'office_phone'); ?><br />
        <?php endif;?>

        <?php
            if( $_webnukes->kvalue($h_settings, 'office_fax') ): /** check if office fax added in options*/ ?>
        <?php _e('Fax', THEME_NAME); ?>: <?php echo $_webnukes->kvalue($h_settings, 'office_fax'); ?><br />
        <?php endif;?>
        
        <?php if( $_webnukes->kvalue($h_settings, 'office_email') ) : // check if office fax added in options ?>
        <?php _e('Email', THEME_NAME); ?>: <?php echo $_webnukes->kvalue($h_settings, 'office_email');?>
        <?php endif;?>
    </div>
    
    <div class="clear"></div>

    <?php if( $_webnukes->kvalue($h_settings, 'office_map') ) : ?>
        <!-- Google Map -->
        <div class="google_map margin_bottom margin_top">
            <?php echo $_webnukes->kvalue($h_settings, 'office_map'); ?>
        </div>
    <?php endif;?>

    <!-- Contact Form -->
    <div id="contact_menu">
        <?php //do_shortcode('contact_form'); ?>
        <form method="post" action="" onSubmit="SubmitContactForm(this, '<?php echo home_url();?>/wp-admin/admin-ajax.php');return false;">
            <input type="text" name="contact_name" onfocus="if(this.value == '<?php _e('Name', THEME_NAME); ?>') { this.value = ''; }" onblur="if(this.value == '') { this.value = '<?php _e('Name', THEME_NAME); ?>'; }" value="<?php _e('Name', THEME_NAME); ?>" />
            <input type="text" name="contact_email" onfocus="if(this.value == '<?php _e('Email', THEME_NAME); ?>') { this.value = ''; }" onblur="if(this.value == '') { this.value = '<?php _e('Email', THEME_NAME); ?>'; }" value="<?php _e('Email', THEME_NAME); ?>" />
            <input type="text" name="contact_website" onfocus="if(this.value == '<?php _e('Website', THEME_NAME); ?>') { this.value = ''; }" onblur="if(this.value == '') { this.value = '<?php _e('Website', THEME_NAME); ?>'; }" value="<?php _e('Website', THEME_NAME); ?>" />
            <p><textarea name="contact_message" cols="5" rows="5"></textarea></p>
            <input type="submit" name="hc_submit" class="contact_submit" value="<?php _e('Submit', THEME_NAME); ?>" tabindex="6" />
            <input type="reset" name="hc_reset" class="contact_submit" value="<?php _e('Reset', THEME_NAME); ?>" tabindex="6" />
            <div class="clear"></div>
        </form>
    </div>
</div>